export interface User {
  userId: number
  avatar: string
  name: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}

export interface ApiResponse<T = {}> {
  success: boolean
  code: number
  message: string
  data: T
}

export interface LoginFrom {
  username: string
  password: string
}

interface tokenData {
  token?: string
  message?: string
}

export interface LoginData {
  code: number
  data: tokenData
}

export interface userInfoData {
  code: number
  data: User
}
